import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'

Vue.config.productionTip = false

// 1.引入全局的公共样式  
import "@/styles/index.scss"

// 2.全局混入
import "@/utils/mixins"

// 3.引入vant
import vant from "vant"
import "vant/lib/index.css"
import { ImagePreview } from 'vant';

Vue.use(ImagePreview);

// 适配
// 4.淘宝适配
import "lib-flexible"

// 5.axios
import { axios } from "@/api/request"
Vue.prototype.$axios = axios;



// 7.全局注册组件
import "@/components"


// 8.挂载正则
import { reg } from "@/utils/validate"
Vue.prototype.$reg = reg


// 9.全局的ajax
import { ajax } from "@/api/index"
Vue.prototype.$ajax = ajax;


// 10.全局的过滤器 指令
import "@/utils/golbal"


Vue.use(vant)
new Vue({
    // 挂载到根实例  
    router, // this.$router 
    store,  // this.$store 
    render: h => h(App)
}).$mount('#app')
